<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
    <?php echo $this->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8'); ?>
    <?php echo $this->headTitle(); ?>
    <?php echo $this->headLink(); ?>
    <?php echo $this->headScript(); ?>
    <meta name="title" content="<?php echo $this->title; ?>"/>
    <meta name="description" content="<?php echo $this->description; ?>"/>
    <meta itemprop="image" content="<?php echo $this->baseUrl('/public/files/product/') . $this->image; ?>" />
    <meta property="og:url" content="<?php echo 'http://localhost:81' . $this->userAgent()->getServerValue('request_uri'); ?>" />
    <meta property="og:title" content="<?php echo $this->title; ?>"/>
    <meta property="og:description" content="<?php echo $this->description; ?>" />
    <meta property="og:image" content="<?php echo $this->baseUrl('/public/files/product/') . $this->image; ?>" />
    <meta property="og:site_name" content="uMarket.vn" />
    <script src='http://connect.facebook.net/en_US/all.js'></script>
    <script type="text/javascript">
        $(document).ready(function() {
        	$('#slideshow').rhinoslider({
        		autoPlay: true
        	});
        });
        
		$(document).ready(function() {
		/*	
			var defaults = {
	  			containerID: 'toTop', // fading element id
				containerHoverID: 'toTopHover', // fading element hover id
				scrollSpeed: 1200,
				easingType: 'linear' 
	 		};*/
			$().UItoTop({ easingType: 'easeOutQuart' });
			
		});
    </script>

</head>

<body onload="setCountDown();">
<div id="fb-root"></div>
    <script type="text/javascript">
        (function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=394487913951162";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));

        (function() {
        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = 'https://apis.google.com/js/plusone.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
        })();

        (function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); js.id = id;
          js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=421920521189988";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
    </script>
<div class="d_head">
	<div class="d_head_content">
    <?php
        $auth = Zend_Auth::getInstance();
        if($auth->hasIdentity()) :
        $infoUser = $auth->getIdentity();
        if($infoUser->level == 3) :
        if($infoUser->type_user == 'facebook') :
    ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php elseif($infoUser->type_user == 'google') : ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php elseif($infoUser->type_user == 'user') : ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/logout'); ?>" onclick="return logout()">Thoát</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('user/profile'); ?>"><?php echo $infoUser->email; ?></a>
    <?php
        endif;
        else :
    ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/login'); ?>">Đăng nhập</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/register'); ?>">Đăng ký</a>
    <?php
        endif;
        else :
    ?>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/login'); ?>">Đăng nhập</a><p class="btn2_header">&nbsp;|&nbsp;</p>
        <a class="btn_header" href="<?php echo $this->baseUrl('index/register'); ?>">Đăng ký</a>
    <?php endif; ?>
        <div class="filter">
            <ul>
                <li>
                    <div class="current">
                        <p>Toàn Quốc</p>
                        <span class="control">▼</span>
                    </div>
                    <ul>
                        <li><a href="">Hà Nội</a></li>
                        <li><a href="">Tp.Hồ Chí Minh</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>

<!--Begin all-->
<div class="d_all">
	<div class="d_all">
    <div class="d_logo"><a href="<?php echo $this->baseUrl('index'); ?>"><img src="<?php echo $this->DirImg; ?>/logo.png" /></a></div>
    <!--Begin menu 1-->
    <div class="d_menu1">
    	<div class="d_space2"></div>
        <div class="d_menu1_contents">
        <?php echo $this->Menu(); ?>
        </div>
    </div>
    <!--End menu 1-->
    </div>
    <div class="clear"></div>
    <div class="d_sha1"></div>
    
    <?php echo $this->layout()->content; ?>
    
    <?php echo $this->render('/right.phtml'); ?>

    <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <!--End Contents-->
    <div class="d_space_height_10"></div>
</div>
<!--End all-->

<!--Menu 2-->    
<div class="d_menu2">
    <?php echo $this->Menu(); ?>
</div>
</div>
<div class="clear"></div>
<!--End Menu 2-->
<!--Begin Footer-->
<div class="d_footer">
	<div class="d_footer_contents">
    	<div class="d_footer_left">
        	<div class="pa10">Lorem ipsum dolor sit amet.</div>
		</div>
        <div class="d_footer_right">
        	<div class="pa10">
        	© Copyright 2011 - Viettel Telecom<br />
			Cơ quan chủ quản: Tập đoàn Viễn Thông Quân đội<br />
			Giấy phép số: 144/GP-BC do Bộ Thông tin - Truyền thông cấp ngày 18/04/2007 <br />
            Website: <a href="#">www.viettelmobile.vn</a>
            </div>
        </div>
    </div>
</div>
<!--End Footer-->
<a id="toTop" href="#" style="display: inline;">
    <span id="toTopHover" style="opacity: 0;" ></span>
</a>
</body>
</html>
